Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODMenuBar


IsValid

The IsValid method returns a Boolean value that indicates whether this menu bar object is equivalent to the base menu bar object from which it was copied.

ODBoolean IsValid (); 
return value
kODTrue if this menu bar object is equivalent to the base menu bar object from which it was copied, otherwise kODFalse.
DISCUSSION
Your part calls its cached base menu bar's IsValid method before adding its own menus and displaying the composite menu bar. If this base menu bar is no longer valid, your part recopies the current base menu bar object by calling its window-state's CopyBaseMenuBar method.

SEE ALSO
The ODWindowState::CopyBaseMenuBar method (page 855).
Listing 2-30 on page 86 in OpenDoc Cookbook.
Listing 2-37 on page 94 in OpenDoc Cookbook.
"Obtaining the Menu Focus" on page 243 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help